package com.huilian.iotbox.data.service;

import com.github.pagehelper.PageInfo;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.dto.LogLoginDto;
import com.huilian.iotbox.data.po.LogManipulate;
import com.huilian.iotbox.data.vo.UserInfo;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 谢洛涛
 * @date 2021/5/17 16:22
 */
public interface LogManipulateService {
    Integer insert(UserInfo userInfo, String param, String remark, HttpServletRequest request, ServerResponse response, String deviceNo, Integer type);

    PageInfo findAllByKeyword(LogManipulate logManipulate);

    ServerResponse delete(Integer id);

    ServerResponse batchDelete(LogLoginDto logLoginDto);

    ServerResponse deleteInStartAndEndDateTime(LogLoginDto logLoginDto);

    Integer deleteByTime();

    ServerResponse findListByKeyword(LogManipulate logManipulate);

    void add(LogManipulate logManipulate);
}
